// 开发环境配置
export let baseUrl
export let version
if (process.env.NODE_ENV === 'development') {
  baseUrl = import.meta.env.MES_DEV_BASE_URL
} else {
	 baseUrl = import.meta.env.MES_BASE_URL
}

version = import.meta.env.MES_VERSION

console.log(`[MES_ ${version}] `)

export const apiPath = import.meta.env.MES_API_PATH

export const requestTenantId = import.meta.env.MES_REQUEST_TENANT_ID

export const tokenName = 'X-Token'

// Token前缀，注意最后有个空格，如不需要需设置空字符串
export const tokenPrefix = 'Bearer '

// 上传文件地址
export const uploadFileUrl = 'attachment/oss/portal/'

// app服务前缀
export const appServicePrefix = '/api'

export default {
  version,
  baseUrl,
  apiPath,
  requestTenantId,
  tokenName,
  tokenPrefix,
  uploadFileUrl,
  appServicePrefix
}
